require 'app_engine_logger'

AppEngine::LogDevice.log_uri = 'http://localhost:8080/log'
log_dev = AppEngine::LogDevice.new('Sample Ruby Logger', {:api_key => 'logclient', :secret_key => '11235813'})
logger = AppEngine::Logger.new(log_dev)

logger.add(Logger::INFO, "An informational message from the ruby logger", "Sample Program")
begin
  3 / 0
rescue ZeroDivisionError => e
  logger.add(Logger::ERROR, e, "Sample Program")
end